package com.example.eventlistener.event;


import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;


/**
 * @Description : 自定义事件
 * @Author : Bruce Lee
 * @CreateTime : 2023/11/21
 */
@Getter
@Setter
public class MyEvent extends ApplicationEvent {

    private String msg;

    public MyEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }
}